package com.song.boot.applicationListener;

import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Description: ApplicationListenerTest：类描述
 * @author: songzhangyong
 * @Date: 2020/6/1 10:07
 */
@Component
public class ApplicationEnvironmentPreparedEventTest implements ApplicationListener<ApplicationEnvironmentPreparedEvent> {


	@Override
	public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
		System.out.println("Listener==========ApplicationEnvironmentPreparedEvent：spring boot 对应Enviroment已经准备完毕，但此时上下文context还没有创建执行");

	}
}
